package com.example.cloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ws
 * Date: 2024-03-05
 * Time: 20:56
 */
@EnableDiscoveryClient // 开启 consul 注册
@RefreshScope
@SpringBootApplication
@MapperScan("com.example.cloud.mapper") // 扫描指定的包，减少 @Mapper 的重复写
public class Main8002 {
    public static void main(String[] args) {
        SpringApplication.run(Main8002.class, args);
    }
}
